#include <stdio.h>
#include <stdarg.h>
#include <iostream>
int myprintf(){
    std::cout<<std::endl;
    return 0;
}

template<typename T,typename ...Args>
int myprintf(T& v,Args&&... args){
    std::cout<<v;
    int ret=0;
    if(sizeof...(args) > 0){
        ret+=myprintf(std::forward<Args>(args)...);
    }
    else{
        myprintf();
    }
    return sizeof(v) + ret;
}

int main(){
    // va_list pa;
    myprintf("yug","dwfw","fwefwefwef");

}